package tt.dz.biz.service.card;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import tt.dz.biz.dao.user.OnlineAccountDAO;
import tt.dz.common.LogUtil;
import tt.dz.vo.OnlineAccountVO;

@Service("onlineCardService")
public class OnlineCardService
{
  @Resource(name="onlineAccountDAO")
  private OnlineAccountDAO onlineAccountDAO;
  
  public OnlineAccountVO queryOnlineCardByNo(String cardNo)
    throws Exception
  {
    try
    {
      return this.onlineAccountDAO.queryOnlineCardByNo(cardNo);
    }
    catch (Exception e)
    {
      LogUtil.error("通过卡号查询线上虚拟卡信息异常，参数为：cardNo=" + cardNo, e);
      throw e;
    }
  }
}
